package com.typhoon.spring_jdbctemplate.service.impl;

import com.typhoon.spring_jdbctemplate.service.ReturnAddressService;

/**
 * 自定义寻址抽象实现
 */
public abstract class AbstractReturnAddressService implements ReturnAddressService {

    @Override
    public String getAddress(Long sellerId) {
        if(null == sellerId) {
            throw new IllegalArgumentException("params is illegal");
        }
        return execute(sellerId);
    }

    public abstract String execute(Long sellerId);
}
